<template>
	<view>
		<navigationbar :title="title"></navigationbar>
		<view class="container">
			<view class="top">
				<textarea value="" placeholder="请输入你宝贵的建议!" />
			</view>
			<view class="uploadFile">
				<view class="btnContainer"><u-button class="btnUploadFile" size="normal" text="发送建议" :color="buttonBgColor" @click="uploadFile"></u-button></view>
			</view>
		</view>
		<u-toast ref="uToast"></u-toast>
	</view>
</template>

<script>
	import navigationbar from '../navigationBar.vue';
	export default {
		components:{
			navigationbar
		},
		data() {
			return {
				title: "反馈建议",
				buttonBgColor: '#7aaffe',
			}
		},
		methods: {
			uploadFile(){
				this.$refs.uToast.show({
					message: '发送成功',
					icon: 'https://cdn.uviewui.com/uview/demo/toast/success.png',
					type: 'success'
				});
			}
		}
	}
</script>

<style lang="scss">
.uploadFile {
	height: 150rpx;
	width: 100%;
	position: absolute;
	bottom: 0;
	z-index: 9999;
	.btnContainer {
		width: 85%;
		height: 100%;
		margin: 0 auto;
	}
}
</style>
